//
//  BaswedViewController.swift
//  新闻
//
//  Created by 芮京 on 2018/12/12.
//  Copyright © 2018 芮京. All rights reserved.
//

import UIKit

class BaswedViewController: UIViewController {
    var str : String = ""
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let web = UIWebView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height))
        let URL = NSURL(string: str)
        let reuest = NSURLRequest(url: URL! as URL)
        
        web.loadRequest(reuest as URLRequest)
        
        self.view.addSubview(web)
        
        
    }
    //隐藏导航条
    override func viewWillAppear(_ animated: Bool) {
        self.tabBarController?.tabBar.isHidden = true
    }
    override func viewWillDisappear(_ animated: Bool) {
        self.tabBarController?.tabBar.isHidden = false
    }

    
}
